import type { ApiRequest } from '@/types/apis.d'
import type { SiteItem } from '@/types/site/site'
import type { FilmListData } from '@/types/site/filmList'
import type { ClassifyListData } from '@/types/site/classifyList'
import type { AtlasListData } from '@/types/site/atlas/atlasClass'
import type { ArticleListData } from '@/types/site/article/articleClass'
import { request } from '../index'

export interface SiteRequest {
  //======================站点管理========================
  //站点列表
  'site.list': {
    site_id?: string | undefined
    site_type?: number | undefined
    site_status?: number | undefined
    site_keyword?: string | undefined
  }
  //新建站点
  'site.add': {
    site_name: string
    site_type: number | undefined
    site_icon_type: number
    site_icon: string
    site_introduction: string
    site_status: number
  }
  //编辑站点
  'site.update': {
    site_name: string
    site_type?: number | undefined
    site_icon: string
    site_icon_type: number
    site_introduction: string
    site_status: number
    site_id?: string | undefined
    site_order?: string
  }
  //站点详情
  'site.detail': {
    site_id: string
  }
  //删除站点
  'site.del': {
    site_id: string
  }
  'site.edit_status': {
    type: number
    status: number
    id: string[]
  }
  //======================影片管理========================
  //影片列表
  'site.film_list': {
    status?: number | undefined
    categ_id: string | undefined
    subcateg_id?: string | undefined
    area_id?: string | undefined
    video_year?: string | undefined
    video_lang?: string | undefined
    publish_state?: number | undefined //发布状态 1-已完结 2-连载
    play_url_state?: number | undefined //有无播放地址 1-有地址 2-无地址
    video_id?: string | undefined
    video_keyword: string | undefined
    site_id: string | undefined
    offset: number
    limit: number
    sort?: string | undefined
    order?: number | undefined
    price_type?: number | undefined //(1:免费, 2:付费, 3:点播)
  }
  //添加影片
  'site.add_film': {
    video_name: string | undefined
    beanId: string | undefined
    video_name_alias: string | undefined
    video_name_eng: string | undefined
    video_categ_id: string | undefined
    video_subcateg_id: string | undefined
    video_album_ids: string[] | undefined
    video_introduction: string | undefined
    video_cover_horizontal: string | undefined
    video_cover_horizontal_type: number
    video_cover_vertical: string | undefined
    video_cover_vertical_type: number
    video_origin: number
    video_highlight: string | undefined
    video_status: number
    video_area_id: string | undefined
    video_year: string | undefined
    video_lang: string | undefined
    video_release_date: any
    video_episode: number | undefined
    video_duration: number | undefined
    video_score_douban: number | undefined
    video_score_imdb: number | undefined
    video_note: string | undefined
    video_play_url: IPlayUrl[] | undefined
    video_keyword: string | undefined
    video_tags: ITags[] | undefined
    video_pop_compensated: number
    video_pop_add_star: number
    video_pop_add_score: number
    video_pop_add_total: number
    video_pop_add_day: number
    video_pop_add_week: number
    video_pop_add_month: number
    video_pop_add_people_count: number
    video_pop_add_view: number
    video_pop_add_like: number
    video_pop_add_collection: number
    video_pop_add_share_count: number
    type_ids: string[] | undefined
    video_episode_total: number | undefined
    video_price: string | undefined
    video_price_type: number
    site_id: string | undefined
    publish_state: number | undefined
    actor: IPerson[] | undefined
    director: IPerson[] | undefined
  }
  //更新影片
  'site.update_film': {
    video_name: string | undefined
    beanId: string | undefined
    video_name_alias: string | undefined
    video_name_eng: string | undefined
    video_categ_id: string | undefined
    video_subcateg_id: string | undefined
    video_album_ids: string[] | undefined
    video_introduction: string | undefined
    video_cover_horizontal: string | undefined
    video_cover_horizontal_type: number
    video_cover_vertical: string | undefined
    video_cover_vertical_type: number
    video_origin: number
    video_highlight: string | undefined
    video_status: number
    video_area_id: string | undefined
    video_year: string | undefined
    video_lang: string | undefined
    video_release_date: any
    video_episode: number | undefined
    video_duration: number | undefined
    video_score_douban: number | undefined
    video_score_imdb: number | undefined
    video_note: string | undefined
    video_play_url: IPlayUrl[] | undefined
    video_keyword: string | undefined
    video_tags: ITags[] | undefined
    video_pop_compensated: number
    video_pop_add_star: number
    video_pop_add_score: number
    video_pop_add_total: number
    video_pop_add_day: number
    video_pop_add_week: number
    video_pop_add_month: number
    video_pop_add_people_count: number
    video_pop_add_view: number
    video_pop_add_like: number
    video_pop_add_collection: number
    video_pop_add_share_count: number
    type_ids: string[] | undefined
    video_episode_total: number | undefined
    video_price: string | undefined
    video_price_type: number
    site_id: string | undefined
    publish_state: number | undefined
    actor: IPerson[] | undefined
    director: IPerson[] | undefined
    video_id?: string | undefined
  }
  //删除影片
  'site.del_film': {
    video_id: string[]
  }
  //获取影片详情
  'site.detail_film': {
    video_id: string
  }
  //根据豆瓣ID影片详情
  'site.detail_film_byBeanId': {
    douban_id: string | undefined
    site_id: string
  }
  //根据豆瓣ID影片详情
  'site.detail_film_byFilmName': {
    video_name: string
  }
  //获取影片参数
  'site.get_video_option': {
    site_id: string
  }
  //设置影片参数
  'site.set_video_option': {
    site_id: string
    lang: string
    year: string
  }

  //======================影片分类========================
  //分类列表
  'site.classify_list': {
    categ_id?: string | undefined
    keyword?: string | undefined
    site_id: string | undefined
    categ_status?: number
  }
  //筛选分类数据
  'site.select_classify_list': {
    site_id: string
  }
  'site.add_classify': {
    categ_name: string
    categ_position: number[]
    categ_status: number
    site_id?: string
  }
  'site.update_classify': {
    categ_id?: string | undefined
    categ_name: string | undefined
    categ_position: number[]
    categ_status: number
    categ_order?: string
  }
  'site.del_classify': {
    categ_id: string[]
  }
  'site.add_subClassify': {
    categ_id?: string | undefined
    subcateg_name: string | undefined
    subcateg_status: number
  }
  'site.update_subClassify': {
    categ_id?: string | undefined
    subcateg_name: string | undefined
    subcateg_status: number
    subcateg_id?: string | undefined
    subcateg_order?: string
  }
  'site.batchUpdate_classify': { categs: ClassifyListData[] }
  //影片类型
  'site.video_type_list': {
    categ_id?: string | undefined
    keyword: string | undefined
    site_id?: string | undefined
  }
  'site.video_add_type': {
    categ_id: string
    type_name: string
    type_status: number
    site_id?: string | undefined
  }
  'site.video_update_type': {
    type_id?: string
    type_name: string
    type_status: number
    type_order?: string
  }
  'site.video_del_type': {
    type_id: string[]
  }
  //根据分类查类型
  'site.video_type_byClass': {
    categ_id: string | undefined
  }
  'site.batchUpdate_type': { types: TypeList[] }
  //影片专辑
  //列表
  'site.video_album_list': {
    album_status?: number | undefined
    album_id?: string | undefined
    album_keyword?: string | undefined
    site_id?: string | undefined
  }
  'site.video_add_album': {
    album_name: string
    album_position: number[]
    album_price: number[] | number //[] 为原价，[number]为免费，[1,2]为随机
    album_price_type: number
    album_status: number
    site_id?: string
  }
  //专辑添加影片
  'site.video_add_album_video': {
    album_id: string
    video_id: string[]
  }
  //专辑获取影片
  'site.video_get_album_video': {
    album_id: string
    video_id?: string
    keyword?: string
  }
  //专辑删除影片
  'site.video_del_album_video': {
    album_id: string
    video_id: string[]
  }
  'site.video_update_album': {
    album_name: string
    album_position: number[]
    album_price: number[] | number
    album_price_type: number
    album_status: number
    album_id?: string
    album_order?: string
  }
  'site.video_del_album': {
    album_id: string[]
  }
  //
  'site.video_order': { album_id: string; video_id: string; video_order: string }
  //影人列表
  //列表
  'site.maker_list': {
    person_status?: number | undefined
    area_id?: string | undefined
    person_id?: string | undefined
    person_keyword?: string | undefined
    site_id: string | undefined
    offset?: number
    limit?: number
    sort?: string | undefined
    order?: number | undefined
  }
  //删除
  'site.maker_del': {
    person_id: string[]
  }
  'site.maker_import': {
    site_id: string
  }
  //新增
  'site.add_person': {
    person_name: string
    person_name_alias: string | undefined
    person_name_eng: string | undefined
    beanId: string | undefined
    person_categ_id: string | undefined
    area_id: string | undefined
    person_gender: number | undefined
    person_blood_type: string | undefined
    person_constellation: string | undefined
    person_height: undefined
    person_weight: undefined
    person_nationality: string | undefined
    person_ethnic: string | undefined
    person_birthday: string | number | undefined
    person_birthplace: any
    person_profession: string | undefined
    person_brokerage: string | undefined
    person_weibo: string | undefined
    person_school: string | undefined
    person_main_work: string | undefined
    person_relation: string | undefined
    person_introduction: string | undefined
    person_cover_vertical: string | undefined
    person_cover_vertical_type: number
    person_avatar: string | undefined
    person_avatar_type: number
    person_detail: string | undefined
    person_status: number
    person_keyword: string | undefined
    person_tags: ITags[] | undefined
    person_tags_copy: ITags[] | undefined
    person_pop_compensated: number
    person_pop_add_star: number
    person_pop_add_total: number
    person_pop_add_day: number
    person_pop_add_week: number
    person_pop_add_month: number
    person_pop_add_view: number
    person_pop_add_like: number
    person_pop_add_dislike: number
    person_pop_star: number
    person_pop_total: number
    person_pop_day: number
    person_pop_week: number
    person_pop_month: number
    person_pop_view: number
    person_pop_like: number
    person_pop_dislike: number
    site_id: string | undefined
  }
  'site.update_person': {
    person_name: string
    person_name_alias: string | undefined
    person_name_eng: string | undefined
    beanId: string | undefined
    person_categ_id: string | undefined
    area_id: string | undefined
    person_gender: number | undefined
    person_blood_type: string | undefined
    person_constellation: string | undefined
    person_height: undefined
    person_weight: undefined
    person_nationality: string | undefined
    person_ethnic: string | undefined
    person_birthday: string | number | undefined
    person_birthplace: any
    person_profession: string | undefined
    person_brokerage: string | undefined
    person_weibo: string | undefined
    person_school: string | undefined
    person_main_work: string | undefined
    person_relation: string | undefined
    person_introduction: string | undefined
    person_cover_vertical: string | undefined
    person_cover_vertical_type: number
    person_avatar: string | undefined
    person_avatar_type: number
    person_detail: string | undefined
    person_status: number
    person_keyword: string | undefined
    person_tags: ITags[] | undefined
    person_tags_copy: ITags[] | undefined
    person_pop_compensated: number
    person_pop_add_star: number
    person_pop_add_total: number
    person_pop_add_day: number
    person_pop_add_week: number
    person_pop_add_month: number
    person_pop_add_view: number
    person_pop_add_like: number
    person_pop_add_dislike: number
    person_id: string | undefined
  }
  'site.detail_person': {
    person_id: string
  }
  //根据影人名称查询影人列表
  'site.detail_person_byPersonName': {
    person_name: string
  }
  //根据豆瓣id查询详情
  'site.detail_person_byBeanId': {
    douban_id: string
  }
  //影人分类
  'site.person_classify_list': {
    keyword?: string | undefined
    site_id: string | undefined
  }
  'site.person_add_classify': {
    person_categ_name: string
    person_categ_status: number
    site_id?: string | undefined
  }
  'site.person_update_classify': {
    person_categ_id?: string | undefined
    person_categ_name: string | undefined
    person_categ_order?: string
    person_categ_status: number
  }
  'site.person_del_classify': {
    person_categ_id: string[]
  }
  //角色管理
  'site.role_list': {
    role_status: number | undefined
    role_id: string | undefined
    role_keyword: string | undefined
    person_keyword: string | undefined
    site_id: string | undefined
    offset: number
    limit: number
    sort?: string | undefined
    order?: number | undefined
  }
  'site.role_add': {
    video_id: string | undefined
    video_name: string | undefined
    role_name: string | undefined
    role_name_alias: string | undefined
    role_name_eng: string | undefined
    person_id: string | undefined
    person_name: string | undefined
    role_introduction: string | undefined
    role_cover: string | undefined
    role_cover_type: number
    role_status: number
    role_keyword: string | undefined
    role_tags: ITags[] | undefined
    role_tags_copy: ITags[] | undefined
    role_pop_compensated: number
    role_pop_add_star: number
    role_pop_add_total: number
    role_pop_add_day: number
    role_pop_add_week: number
    role_pop_add_month: number
    role_pop_add_view: number
    role_pop_add_like: number
    role_pop_add_dislike: number
    site_id?: string | undefined
  }
  'site.role_update': {
    video_id: string | undefined
    video_name: string | undefined
    role_name: string | undefined
    role_name_alias: string | undefined
    role_name_eng: string | undefined
    person_id: string | undefined
    person_name: string | undefined
    role_introduction: string | undefined
    role_cover: string | undefined
    role_cover_type: number
    role_status: number
    role_keyword: string | undefined
    role_tags: ITags[] | undefined
    role_tags_copy: ITags[] | undefined
    role_pop_compensated: number
    role_pop_add_star: number
    role_pop_add_total: number
    role_pop_add_day: number
    role_pop_add_week: number
    role_pop_add_month: number
    role_pop_add_view: number
    role_pop_add_like: number
    role_pop_add_dislike: number
    role_id?: string | undefined
  }
  'site.role_detail': {
    role_id: string
  }
  'site.role_del': {
    role_id: string[]
  }
  //地区管理
  'site.area_list': {
    area_id?: string | undefined
    keyword?: string | undefined
    site_id: string | undefined
  }
  'site.area_add': {
    area_name: string
    site_id?: string
  }
  'site.area_update': {
    area_id?: string
    area_name: string
    area_order?: string
  }
  'site.area_del': {
    area_id: string[]
  }
  //批量添加
  'site.area_batch_add': {}
  //======================图集管理========================
  //图集列表
  'site.atlas_list': {
    status?: number | undefined
    categ_id: string | undefined
    subcateg_id: string | undefined
    price_type?: number | undefined
    publish_state?: number | undefined
    picture_id: string | undefined
    picture_keyword: string | undefined
    site_id: string | undefined
    offset: number
    limit: number
    sort?: string | undefined
    order?: number | undefined
  }

  'site.add_atlas': {
    picture_name: string | undefined
    picture_categ_id: string | undefined
    picture_subcateg_id: string | undefined
    picture_album_ids: string[] | undefined
    publish_state: number
    picture_author: string | undefined
    picture_introduction: string | undefined
    picture_cover_horizontal: string | undefined
    picture_cover_horizontal_type: number
    picture_cover_vertical: string | undefined
    picture_cover_vertical_type: number
    picture_status: number | undefined
    picture_keyword: string | undefined
    file_type: number | undefined
    picture_tags: ITags[] | undefined
    picture_pop_compensated: number
    picture_pop_add_star: number
    picture_pop_add_total: number
    picture_pop_add_day: number
    picture_pop_add_week: number
    picture_pop_add_month: number
    picture_pop_add_people_count: number
    picture_pop_add_view: number
    picture_pop_add_like: number
    picture_pop_add_collection: number
    picture_pop_add_share_count: number
    chapters: chaptersItem[]
    type_ids: string[] | undefined
    picture_price: string | undefined
    picture_price_type: number
    site_id?: string | undefined
  }
  'site.update_atlas': {
    picture_name: string | undefined
    picture_categ_id: string | undefined
    picture_subcateg_id: string | undefined
    picture_album_ids: string[] | undefined
    publish_state: number
    picture_author: string | undefined
    picture_introduction: string | undefined
    picture_cover_horizontal: string | undefined
    picture_cover_horizontal_type: number
    picture_cover_vertical: string | undefined
    picture_cover_vertical_type: number
    picture_status: number
    picture_keyword: string | undefined
    picture_tags: ITags[] | undefined
    picture_pop_compensated: number
    picture_pop_add_star: number
    picture_pop_add_total: number
    picture_pop_add_day: number
    picture_pop_add_week: number
    picture_pop_add_month: number
    picture_pop_add_people_count: number
    picture_pop_add_view: number
    picture_pop_add_like: number
    picture_pop_add_collection: number
    picture_pop_add_share_count: number
    chapters: chaptersItem[]
    file_type: number | undefined
    type_ids: string[] | undefined
    picture_id: string
    picture_price: string | undefined
    picture_price_type: number
  }
  'site.detail_atlas': {
    picture_id: string
  }
  'site.del_atlas': {
    picture_id: string[]
  }
  //图集分类
  'site.atlas_classify_list': {
    categ_id?: string | undefined
    keyword?: string | undefined
    site_id: string | undefined
    categ_status?: number
  }
  //筛选分类数据
  'site.atlas_filter_classify_list': {
    site_id: string
  }
  'site.atlas_add_classify': {
    categ_name: string | undefined
    categ_cover: string | undefined
    categ_status: number
    site_id?: string | undefined
  }
  'site.atlas_update_classify': {
    categ_id?: string | undefined
    categ_name: string | undefined
    categ_cover: string | undefined
    categ_status: number
    categ_order?: string
  }
  'site.atlas_del_classify': {
    categ_id: string[]
  }
  'site.atlas_add_subClassify': {
    categ_id?: string | undefined
    subcateg_name: string | undefined
    subcateg_status: number
  }
  'site.atlas_update_subClassify': {
    categ_id?: string | undefined
    subcateg_name: string | undefined
    subcateg_status: number
    subcateg_id?: string | undefined
    subcateg_order?: string
  }
  //图集分类批量修改
  'site.atlas_batchUpdate': {
    categs: AtlasListData[]
  }
  //图集类型
  'site.atlas_type_list': {
    categ_id?: string | undefined
    keyword: string | undefined
    site_id?: string | undefined
  }
  'site.atlas_add_type': {
    categ_id: string
    type_name: string
    type_status: number
    site_id?: string | undefined
  }
  'site.atlas_update_type': {
    type_id?: string
    type_name: string
    type_status: number
    type_order?: string
  }
  'site.atlas_del_type': {
    type_id: string[]
  }
  'site.batchUpdate_atlasType': { types: TypeList[] }
  //根据分类查类型
  'site.atlas_type_byClass': {
    categ_id: string | undefined
  }
  //图集专辑
  'site.atlas_album_list': {
    album_status?: number | undefined
    album_id?: string | undefined
    album_keyword?: string | undefined
    site_id?: string | undefined
  }
  'site.atlas_add_album': {
    album_name: string
    album_price_type: number
    album_price: number[] //[] 为原价，[number]为免费，[1,2]为随机
    album_status: number
    site_id?: string
  }
  //专辑添加图集
  'site.atlas_add_album_pic': {
    album_id: string
    picture_id: string[]
  }
  //专辑删除图集
  'site.atlas_del_album_pic': {
    album_id: string
    picture_id: string[]
  }
  //专辑获取图集
  'site.atlas_get_album_pic': {
    album_id: string
    picture_id?: string
    keyword?: string
  }

  'site.atlas_update_album': {
    album_name: string
    album_price_type: number
    album_price: number[]
    album_status: number
    album_id?: string
    album_order?: string
  }
  'site.atlas_del_album': {
    album_id: string[]
  }
  //======================文章管理========================
  //文章列表
  'site.article_list': {
    status?: number | undefined
    categ_id: string | undefined
    subcateg_id: string | undefined
    price_type?: number | undefined
    publish_state?: number | undefined
    article_id: string | undefined
    article_keyword: string | undefined
    site_id: string | undefined
    offset: number
    limit: number
    sort?: string | undefined
    order?: string | undefined
  }
  'site.add_article': {
    article_name: string
    article_categ_id: string | undefined
    article_album_ids: string[] | undefined
    publish_state: number | undefined
    article_author: string | undefined
    article_introduction: string | undefined
    article_cover_horizontal: string | undefined
    article_cover_horizontal_type: number
    article_cover_vertical: string | undefined
    article_cover_vertical_type: number
    article_status: number
    article_keyword: string | undefined
    article_tags: ITags[] | undefined
    article_pop_compensated: number
    article_pop_add_star: number
    article_pop_add_total: number
    article_pop_add_day: number
    article_pop_add_week: number
    article_pop_add_month: number
    article_pop_add_people_count: number
    article_pop_add_view: number
    article_pop_add_like: number
    article_pop_add_collection: number
    article_pop_add_share_count: number
    file_type: number
    chapters: article_chaptersItem[]
    type_ids: string[] | undefined
    article_price: string | undefined
    article_price_type: number
    site_id: string | undefined
  }
  'site.update_article': {
    article_name: string
    article_categ_id: string | undefined
    article_subcateg_id: string | undefined
    article_album_ids: string[] | undefined
    publish_state: number
    article_author: string | undefined
    article_introduction: string | undefined
    article_cover_horizontal: string | undefined
    article_cover_horizontal_type: number
    article_cover_vertical: string | undefined
    article_cover_vertical_type: number
    article_status: number
    article_keyword: string | undefined
    article_tags: ITags[] | undefined
    article_pop_compensated: number
    article_pop_add_star: number
    article_pop_add_total: number
    article_pop_add_day: number
    article_pop_add_week: number
    article_pop_add_month: number
    article_pop_add_people_count: number
    article_pop_add_view: number
    article_pop_add_like: number
    article_pop_add_collection: number
    article_pop_add_share_count: number
    file_type: number
    chapters: article_chaptersItem[]
    article_id: string | undefined
    type_ids: string[] | undefined
    article_price: string | undefined
    article_price_type: number
  }
  'site.detail_article': {
    article_id: string
  }
  'site.del_article': {
    article_id: string[]
  }
  //文章分类 ing
  'site.article_classify_list': {
    categ_id?: string | undefined
    keyword?: string | undefined
    site_id: string | undefined
    categ_status?: number
  }
  //筛选分类数据
  'site.article_filter_classify_list': {
    site_id: string
  }
  'site.article_add_classify': {
    categ_name: string
    categ_cover: string
    categ_status: number
    site_id?: string | undefined
  }
  'site.article_update_classify': {
    categ_id?: string | undefined
    categ_name: string | undefined
    categ_cover: string
    categ_status: number
    categ_order?: string
  }
  'site.article_del_classify': {
    categ_id: string[]
  }
  'site.article_add_subClassify': {
    categ_id?: string | undefined
    subcateg_name: string | undefined
    subcateg_status: number
  }
  'site.article_update_subClassify': {
    categ_id?: string | undefined
    subcateg_name: string | undefined
    subcateg_status: number
    subcateg_id?: string | undefined
    subcateg_order?: string
  }
  'site.article_del_subClassify': {
    subcateg_id: string[]
  }
  'site.article_batchUpdate': {
    categs: ArticleListData[]
  }
  //文章类型
  'site.article_type_list': {
    categ_id?: string | undefined
    keyword: string | undefined
    site_id?: string | undefined
  }
  'site.article_add_type': {
    categ_id?: string | undefined
    type_name: string
    type_status: number
    site_id?: string | undefined
  }
  'site.article_update_type': {
    type_id?: string
    type_name: string
    type_status: number
    type_order?: string
  }
  'site.article_del_type': {
    type_id: string[]
  }
  //根据文章分类查类型
  'site.article_type_byClass': {
    categ_id: string | undefined
  }
  'site.batchUpdate_articleType': { types: TypeList[] }
  //文章专辑
  'site.article_album_list': {
    album_status?: number | undefined
    album_id?: string | undefined
    album_keyword?: string | undefined
    site_id: string | undefined
  }
  'site.article_add_album': {
    album_name: string
    album_price_type: number
    album_price: number[] //[] 为原价，[number]为免费，[1,2]为随机
    album_status: number
    site_id?: string
  }
  //专辑添加图集
  'site.article_add_album_article': {
    album_id: string
    article_id: string[]
  }
  //专辑删除图集
  'site.article_del_album_article': {
    album_id: string
    article_id: string[]
  }
  //专辑添加图集
  'site.article_get_album_article': {
    album_id: string
    article_id?: string
    keyword?: string
  }

  'site.article_update_album': {
    album_name: string
    album_price_type: number
    album_price: number[]
    album_status: number
    album_id?: string
    album_order?: string
  }
  'site.article_del_album': {
    album_id: string[]
  }
  //======================标签管理========================
  //标签列表
  'site.tag_list': {
    module?: number | undefined
    tag_id?: string | undefined
    tag_keyword?: string | undefined
    site_id: string | undefined
    offset?: number
    limit?: number
    sort?: string | undefined
    order?: string | undefined
  }
  //添加标签
  'site.tag_add': {
    tag_name: string | undefined
    tag_module: number | undefined
    site_id?: string | undefined
  }
  //编辑标签
  'site.tag_update': {
    tag_name: string | undefined
    tag_module: number | undefined
    tag_id?: string | undefined
  }
  //编辑标签
  'site.tag_del': {
    tag_id: string[]
  }
  //批量添加
  'site.tag_batch_add': {}
}
//影片类型
interface TypeList {
  type_name: string
  type_status: number
  type_order: string
  type_id: string
  deleted?: number
}
//图集批量编辑接口
interface AtlasBatchType {
  id: string
  name: string
  order: string
  cover: string
  status: number
  deleted?: number
  subcateg?: AtlasBatchType
}
interface ITags {
  tag_id: string
  tag_name: string
}
interface IPerson {
  person_id: string
  person_name: string
}
interface IPlayUrl {
  number: number
  name: string | undefined
  urls: [
    {
      name: string | undefined
      url: string | undefined
      order: number
      seed_mark: string | undefined
    }
  ]
}
//播放资源
interface article_chaptersItem {
  article_content: string
  chapter_no: string
  chapter_name: string
  is_edit: boolean
}
interface chaptersItem {
  picture_url: string
  chapter_no: string
  chapter_name: string
  is_edit?: boolean
}

//======================站点管理========================
//列表
export const list = (params?: ApiRequest['site.list']) => request.get<'site.list', SiteItem[]>('v1/site/list', params)
//新增
export const add = (data?: ApiRequest['site.add']) => request.post<'site.add', any>('v1/site/add', data)
//编辑
export const update = (data?: ApiRequest['site.update']) => request.post<'site.update', any>('v1/site/update', data)
//列表
export const detail = (params?: ApiRequest['site.detail']) => request.get<'site.detail', any>('v1/site/detail', params)
//删除
export const del = (data?: ApiRequest['site.del']) => request.post<'site.del', any>('v1/site/del', data)
//修改状态
export const edit_status = (data?: ApiRequest['site.edit_status']) =>
  request.post<'site.edit_status', any>('v1/status/update', data)
/**
 * type:1：站点, 2：影片, 3：图集, 4：文章, 5：分类, 6:子类, 7：类型, 8：专辑, 9: 影人, 1number：影人分类, 11: 角色
 */
//======================影片管理========================
//列表
export const film_list = (params?: ApiRequest['site.film_list']) =>
  request.get<'site.film_list', FilmListData[]>('v1/video/list', params)
//新增
export const add_film = (data?: ApiRequest['site.add_film']) => request.post<'site.add_film', any>('v1/video/add', data)
//编辑
export const update_film = (data?: ApiRequest['site.update_film']) =>
  request.post<'site.update_film', any>('v1/video/update', data)
//删除
export const del_film = (data?: ApiRequest['site.del_film']) => request.post<'site.del_film', any>('v1/video/del', data)
//详情
export const detail_film = (params?: ApiRequest['site.detail_film']) =>
  request.get<'site.detail_film', any>('v1/video/detail', params)
//根据豆瓣ID查询详情
export const detail_film_byBeanId = (params?: ApiRequest['site.detail_film_byBeanId']) =>
  request.get<'site.detail_film_byBeanId', any>('v1/video/detail/douban', params)
//根据影片名称查询豆瓣影片列表
export const detail_film_byFilmName = (params?: ApiRequest['site.detail_film_byFilmName']) =>
  request.get<'site.detail_film_byFilmName', any>('/v1/video/list/douban', params)
//获取语言
export const get_video_option = (params?: ApiRequest['site.get_video_option']) =>
  request.get<'site.get_video_option', any>('v1/video/option', params)
//获取语言
export const set_video_option = (data?: ApiRequest['site.set_video_option']) =>
  request.post<'site.set_video_option', any>('v1/video/option/update', data)
//影片分类
//列表
export const classify_list = (params?: ApiRequest['site.classify_list']) =>
  request.get<'site.classify_list', FilmListData[]>('v1/video/categ/list', params)
//获取下拉分类数据
export const select_classify_list = (params?: ApiRequest['site.select_classify_list']) =>
  request.get<'site.select_classify_list', any>('v1/video/categ/list/all', params)
//新增
export const add_classify = (data?: ApiRequest['site.add_classify']) =>
  request.post<'site.add_classify', any>('v1/video/categ/add', data)
//编辑
export const update_classify = (data?: ApiRequest['site.update_classify']) =>
  request.post<'site.update_classify', any>('v1/video/categ/update', data)
//删除
export const del_classify = (data?: ApiRequest['site.del_classify']) =>
  request.post<'site.del_classify', any>('v1/video/categ/del', data)
//新增子类
export const add_subClassify = (data?: ApiRequest['site.add_subClassify']) =>
  request.post<'site.add_subClassify', any>('v1/video/subcateg/add', data)
//编辑子类
export const update_subClassify = (data?: ApiRequest['site.update_subClassify']) =>
  request.post<'site.update_subClassify', any>('v1/video/subcateg/update', data)
//批量编辑
export const batchUpdate_classify = (data?: ApiRequest['site.batchUpdate_classify']) =>
  request.post<'site.batchUpdate_classify', any>('v1/video/categ/batchupdate', data)
//影片类型
//列表
export const video_type_list = (params?: ApiRequest['site.video_type_list']) =>
  request.get<'site.video_type_list', any>('v1/video/type/list', params)
//新增
export const video_add_type = (data?: ApiRequest['site.video_add_type']) =>
  request.post<'site.video_add_type', any>('v1/video/type/add', data)
//编辑
export const video_update_type = (data?: ApiRequest['site.video_update_type']) =>
  request.post<'site.video_update_type', any>('v1/video/type/update', data)
//删除
export const video_del_type = (data?: ApiRequest['site.video_del_type']) =>
  request.post<'site.video_del_type', any>('v1/video/type/del', data)
//根据影片分类获取图集类型
export const video_type_byClass = (params?: ApiRequest['site.video_type_byClass']) =>
  request.get<'site.video_type_byClass', any>('v1/video/type', params)
//批量编辑
export const batchUpdate_type = (data?: ApiRequest['site.batchUpdate_type']) =>
  request.post<'site.batchUpdate_type', any>('v1/video/type/batchupdate', data)
//影片专辑
//列表
export const video_album_list = (params?: ApiRequest['site.video_album_list']) =>
  request.get<'site.video_album_list', any>('v1/video/album/list', params)
//新增
export const video_add_album = (data?: ApiRequest['site.video_add_album']) =>
  request.post<'site.video_add_album', any>('v1/video/album/add', data)
//影片专辑添加影片
export const video_add_album_video = (data?: ApiRequest['site.video_add_album_video']) =>
  request.post<'site.video_add_album_video', any>('v1/video/album/addvideo', data)
//影片专辑获取影片
export const video_get_album_video = (params?: ApiRequest['site.video_get_album_video']) =>
  request.get<'site.video_get_album_video', any>('v1/video/album/getvideo', params)
//影片专辑删除影片
export const video_del_album_video = (data?: ApiRequest['site.video_del_album_video']) =>
  request.post<'site.video_del_album_video', any>('v1/video/album/delvideo', data)

//编辑
export const video_update_album = (data?: ApiRequest['site.video_update_album']) =>
  request.post<'site.video_update_album', any>('v1/video/album/update', data)
//删除
export const video_del_album = (data?: ApiRequest['site.video_del_album']) =>
  request.post<'site.video_del_album', any>('v1/video/album/del', data)
//专辑影片排序
export const video_order = (data?: ApiRequest['site.video_order']) =>
  request.post<'site.video_order', any>('v1/video/album/video_order', data)
//影人列表
//列表
export const maker_list = (params?: ApiRequest['site.maker_list']) =>
  request.get<'site.maker_list', any>('v1/video/person/list', params)
//删除maker_del
export const maker_del = (data?: ApiRequest['site.maker_del']) =>
  request.post<'site.maker_del', any>('v1/video/person/del', data)
//导入内置影人库
export const maker_import = (data?: ApiRequest['site.maker_import']) =>
  request.post<'site.maker_import', any>('v1/video/person/import', data)
//新增影人
export const add_person = (data?: ApiRequest['site.add_person']) =>
  request.post<'site.add_person', any>('v1/video/person/add', data)
//编辑影人
export const update_person = (data?: ApiRequest['site.update_person']) =>
  request.post<'site.update_person', any>('v1/video/person/update', data)
//获取影人详情
export const detail_person = (params?: ApiRequest['site.detail_person']) =>
  request.get<'site.detail_person', any>('v1/video/person/detail', params)
//根据影人名称获取影人列表
export const detail_person_byPersonName = (params?: ApiRequest['site.detail_person_byPersonName']) =>
  request.get<'site.detail_person_byPersonName', any>('v1/video/person/list/douban', params)
//获取影人详情
export const detail_person_byBeanId = (params?: ApiRequest['site.detail_person_byBeanId']) =>
  request.get<'site.detail_person_byBeanId', any>('v1/video/person/detail/douban', params)
//影人分类
export const person_classify_list = (params?: ApiRequest['site.person_classify_list']) =>
  request.get<'site.person_classify_list', any>('v1/video/person/categ/list', params)
//新增
export const person_add_classify = (data?: ApiRequest['site.person_add_classify']) =>
  request.post<'site.person_add_classify', any>('v1/video/person/categ/add', data)
//编辑
export const person_update_classify = (data?: ApiRequest['site.person_update_classify']) =>
  request.post<'site.person_update_classify', any>('v1/video/person/categ/update', data)
//删除
export const person_del_classify = (data?: ApiRequest['site.person_del_classify']) =>
  request.post<'site.person_del_classify', any>('v1/video/person/categ/del', data)
//角色管理
//列表
export const role_list = (params?: ApiRequest['site.role_list']) =>
  request.get<'site.role_list', FilmListData[]>('v1/video/role/list', params)
//新增
export const role_add = (data?: ApiRequest['site.role_add']) =>
  request.post<'site.role_add', any>('v1/video/role/add', data)
//编辑
export const role_update = (data?: ApiRequest['site.role_update']) =>
  request.post<'site.role_update', any>('v1/video/role/update', data)
//详情
export const role_detail = (params?: ApiRequest['site.role_detail']) =>
  request.get<'site.role_detail', any>('v1/video/role/detail', params)
//删除
export const role_del = (data?: ApiRequest['site.role_del']) =>
  request.post<'site.role_del', any>('v1/video/role/del', data)
//地区管理
export const area_list = (params?: ApiRequest['site.area_list']) =>
  request.get<'site.area_list', any>('v1/video/area/list', params)
//新增
export const area_add = (data?: ApiRequest['site.area_add']) =>
  request.post<'site.area_add', any>('v1/video/area/add', data)
//编辑
export const area_update = (data?: ApiRequest['site.area_update']) =>
  request.post<'site.area_update', any>('v1/video/area/update', data)
//删除
export const area_del = (data?: ApiRequest['site.area_del']) =>
  request.post<'site.area_del', any>('v1/video/area/delete', data)
//批量添加标签
export const area_batch_add = (data?: ApiRequest['site.area_batch_add']) =>
  request.post<'site.area_batch_add', any>('v1/video/area/batchadd', data)
//======================图集管理========================
//图集列表
//列表
export const atlas_list = (params?: ApiRequest['site.atlas_list']) =>
  request.get<'site.atlas_list', FilmListData[]>('v1/picture/list', params)
//新增
export const add_atlas = (data?: ApiRequest['site.add_atlas']) =>
  request.post<'site.add_atlas', any>('v1/picture/add', data)
//编辑
export const update_atlas = (data?: ApiRequest['site.update_atlas']) =>
  request.post<'site.update_atlas', any>('v1/picture/update', data)
//详情
export const detail_atlas = (params?: ApiRequest['site.detail_atlas']) =>
  request.get<'site.detail_atlas', any>('v1/picture/detail', params)
//删除
export const del_atlas = (data?: ApiRequest['site.del_atlas']) =>
  request.post<'site.del_atlas', any>('v1/picture/del', data)
//图集分类
//列表
export const atlas_classify_list = (params?: ApiRequest['site.atlas_classify_list']) =>
  request.get<'site.atlas_classify_list', any>('v1/picture/categ/list', params)
export const atlas_filter_classify_list = (params?: ApiRequest['site.atlas_filter_classify_list']) =>
  request.get<'site.atlas_filter_classify_list', any>('v1/picture/categ/list/all', params)
//新增
export const atlas_add_classify = (data?: ApiRequest['site.atlas_add_classify']) =>
  request.post<'site.atlas_add_classify', any>('v1/picture/categ/add', data)
//编辑
export const atlas_update_classify = (data?: ApiRequest['site.atlas_update_classify']) =>
  request.post<'site.atlas_update_classify', any>('v1/picture/categ/update', data)
//删除
export const atlas_del_classify = (data?: ApiRequest['site.atlas_del_classify']) =>
  request.post<'site.atlas_del_classify', any>('v1/picture/categ/del', data)
//新增子类
export const atlas_add_subClassify = (data?: ApiRequest['site.atlas_add_subClassify']) =>
  request.post<'site.atlas_add_subClassify', any>('v1/picture/subcateg/add', data)
//编辑子类
export const atlas_update_subClassify = (data?: ApiRequest['site.atlas_update_subClassify']) =>
  request.post<'site.atlas_update_subClassify', any>('v1/picture/subcateg/update', data)
//批量编辑
export const atlas_batchUpdate = (data?: ApiRequest['site.atlas_batchUpdate']) =>
  request.post<'site.atlas_batchUpdate', any>('v1/picture/categ/batchupdate', data)
//图集类型
//列表
export const atlas_type_list = (params?: ApiRequest['site.atlas_type_list']) =>
  request.get<'site.atlas_type_list', any>('v1/picture/type/list', params)
//新增
export const atlas_add_type = (data?: ApiRequest['site.atlas_add_type']) =>
  request.post<'site.atlas_add_type', any>('v1/picture/type/add', data)
//编辑
export const atlas_update_type = (data?: ApiRequest['site.atlas_update_type']) =>
  request.post<'site.atlas_update_type', any>('v1/picture/type/update', data)
//删除
export const atlas_del_type = (data?: ApiRequest['site.atlas_del_type']) =>
  request.post<'site.atlas_del_type', any>('v1/picture/type/del', data)
//根据图集分类获取图集类型
export const atlas_type_byClass = (params?: ApiRequest['site.atlas_type_byClass']) =>
  request.get<'site.atlas_type_byClass', any>('v1/picture/type', params)
//批量编辑
export const batchUpdate_atlasType = (data?: ApiRequest['site.batchUpdate_atlasType']) =>
  request.post<'site.batchUpdate_atlasType', any>('v1/picture/type/batchupdate', data)
//图集专辑
//列表
export const atlas_album_list = (params?: ApiRequest['site.atlas_album_list']) =>
  request.get<'site.atlas_album_list', any>('v1/picture/album/list', params)
//新增
export const atlas_add_album = (data?: ApiRequest['site.atlas_add_album']) =>
  request.post<'site.atlas_add_album', any>('v1/picture/album/add', data)
//图集专辑添加图集
export const atlas_add_album_pic = (data?: ApiRequest['site.atlas_add_album_pic']) =>
  request.post<'site.atlas_add_album_pic', any>('v1/picture/album/addpicture', data)
//图集专辑删除图集
export const atlas_del_album_pic = (data?: ApiRequest['site.atlas_del_album_pic']) =>
  request.post<'site.atlas_del_album_pic', any>('v1/picture/album/delpicture', data)
//图集专辑获取图集
export const atlas_get_album_pic = (params?: ApiRequest['site.atlas_get_album_pic']) =>
  request.get<'site.atlas_get_album_pic', any>('v1/picture/album/getpicture', params)
//编辑
export const atlas_update_album = (data?: ApiRequest['site.atlas_update_album']) =>
  request.post<'site.atlas_update_album', any>('v1/picture/album/update', data)
//删除
export const atlas_del_album = (data?: ApiRequest['site.atlas_del_album']) =>
  request.post<'site.atlas_del_album', any>('v1/picture/album/del', data)

//======================文章管理========================
//文章列表
//列表
export const article_list = (params?: ApiRequest['site.article_list']) =>
  request.get<'site.article_list', FilmListData[]>('v1/article/list', params)
//新增
export const add_article = (data?: ApiRequest['site.add_article']) =>
  request.post<'site.add_article', any>('v1/article/add', data)
//编辑
export const update_article = (data?: ApiRequest['site.update_article']) =>
  request.post<'site.update_article', any>('v1/article/update', data)
//详情
export const detail_article = (params?: ApiRequest['site.detail_article']) =>
  request.get<'site.detail_article', any>('v1/article/detail', params)
//删除
export const del_article = (data?: ApiRequest['site.del_article']) =>
  request.post<'site.del_article', any>('v1/article/del', data)
//文章分类
//列表
export const article_classify_list = (params?: ApiRequest['site.article_classify_list']) =>
  request.get<'site.article_classify_list', any>('v1/article/categ/list', params)
export const article_filter_classify_list = (params?: ApiRequest['site.article_filter_classify_list']) =>
  request.get<'site.article_filter_classify_list', any>('v1/article/categ/list/all', params)
//新增
export const article_add_classify = (data?: ApiRequest['site.article_add_classify']) =>
  request.post<'site.article_add_classify', any>('v1/article/categ/add', data)
//编辑
export const article_update_classify = (data?: ApiRequest['site.article_update_classify']) =>
  request.post<'site.article_update_classify', any>('v1/article/categ/update', data)
//删除
export const article_del_classify = (data?: ApiRequest['site.article_del_classify']) =>
  request.post<'site.article_del_classify', any>('v1/article/categ/del', data)
//新增子类
export const article_add_subClassify = (data?: ApiRequest['site.article_add_subClassify']) =>
  request.post<'site.article_add_subClassify', any>('v1/article/subcateg/add', data)
//编辑子类
export const article_update_subClassify = (data?: ApiRequest['site.article_update_subClassify']) =>
  request.post<'site.article_update_subClassify', any>('v1/article/subcateg/update', data)
//删除子类
export const article_del_subClassify = (data?: ApiRequest['site.article_del_subClassify']) =>
  request.post<'site.article_del_subClassify', any>('v1/article/subcateg/del', data)
//批量编辑
export const article_batchUpdate = (data?: ApiRequest['site.article_batchUpdate']) =>
  request.post<'site.article_batchUpdate', any>('v1/article/categ/batchupdate', data)
//文章类型
//列表
export const article_type_list = (params?: ApiRequest['site.article_type_list']) =>
  request.get<'site.article_type_list', any>('v1/article/type/list', params)
//新增
export const article_add_type = (data?: ApiRequest['site.article_add_type']) =>
  request.post<'site.article_add_type', any>('v1/article/type/add', data)
//编辑
export const article_update_type = (data?: ApiRequest['site.article_update_type']) =>
  request.post<'site.article_update_type', any>('v1/article/type/update', data)
//删除
export const article_del_type = (data?: ApiRequest['site.article_del_type']) =>
  request.post<'site.article_del_type', any>('v1/article/type/del', data)
//根据图集分类获取图集类型
export const article_type_byClass = (params?: ApiRequest['site.article_type_byClass']) =>
  request.get<'site.article_type_byClass', any>('v1/article/type', params)
//批量编辑
export const batchUpdate_articleType = (data?: ApiRequest['site.batchUpdate_articleType']) =>
  request.post<'site.batchUpdate_articleType', any>('v1/article/type/batchupdate', data)
//文章专辑
//列表
export const article_album_list = (params?: ApiRequest['site.article_album_list']) =>
  request.get<'site.article_album_list', any>('v1/article/album/list', params)
//新增
export const article_add_album = (data?: ApiRequest['site.article_add_album']) =>
  request.post<'site.article_add_album', any>('v1/article/album/add', data)
//专辑添加文章
export const article_add_album_article = (data?: ApiRequest['site.article_add_album_article']) =>
  request.post<'site.article_add_album_article', any>('v1/article/album/addarticle', data)
//专辑删除文章
export const article_del_album_article = (data?: ApiRequest['site.article_del_album_article']) =>
  request.post<'site.article_del_album_article', any>('v1/article/album/delarticle', data)

//专辑获取文章
export const article_get_album_article = (params?: ApiRequest['site.article_get_album_article']) =>
  request.get<'site.article_get_album_article', any>('v1/picture/album/getarticle', params)

//编辑
export const article_update_album = (data?: ApiRequest['site.article_update_album']) =>
  request.post<'site.article_update_album', any>('v1/article/album/update', data)
//删除
export const article_del_album = (data?: ApiRequest['site.article_del_album']) =>
  request.post<'site.article_del_album', any>('v1/article/album/del', data)

//======================标签管理========================
//标签列表
export const tag_list = (params?: ApiRequest['site.tag_list']) =>
  request.get<'site.tag_list', any>('v1/tag/list', params)
//添加标签
export const tag_add = (data?: ApiRequest['site.tag_add']) => request.post<'site.tag_add', any>('/v1/tag/add', data)
//编辑标签
export const tag_update = (data?: ApiRequest['site.tag_update']) =>
  request.post<'site.tag_update', any>('/v1/tag/update', data)
//删除标签
export const tag_del = (data?: ApiRequest['site.tag_del']) => request.post<'site.tag_del', any>('v1/tag/del', data)
//获取文件模板
export const tag_template = () => request.get('v1/tag/template')
//批量添加标签
export const tag_batch_add = (data?: ApiRequest['site.tag_batch_add']) =>
  request.post<'site.tag_batch_add', any>('v1/tag/batchadd', data)
